Skip to content

feat(tor): persist transport preferences - #2584

Merged
ethicnology merged 1 commit into
developfrom
feat/tor-persistence
Aug 18, 2026
Merged

feat(tor): persist transport preferences#2584
ethicnology merged 1 commit into
developfrom
feat/tor-persistence

Conversation

@ethicnology

Copy link
Copy Markdown
Member

Stacked on the feat/tor-settings PR. Review that one first.

The chosen transport mode — automatic, direct, or Snowflake — now survives a restart. Until this PR the choice was rebuilt from defaults on every launch, so a user in a censored network had to re-select Snowflake each time they opened the app, which is precisely when they can least afford the extra round of failed bootstraps.

Storage side: Drift schema v14 → v15 adds the column, with the migration step, the generated schema snapshot, and a schema_v14_to_v15_test that exercises the upgrade. UpdateTorTransportModeUsecase owns the write, and the settings entity, model, datasource and repository carry the field.

UI side: the transport selector in tor_proxy_widget reads and writes the persisted value, with its l10n keys added to the English template.

The bulk of the diff is generated code — drift_schema_v15.json, sqlite_database.steps.dart and the generated schema test fixtures account for roughly 11k of the 11.4k inserted lines. The hand-written part is small and worth reading on its own.

@ethicnology ethicnology self-assigned this Aug 10, 2026
@claude

claude Bot commented Aug 10, 2026

Copy link
Copy Markdown

Claude finished @ethicnology's task in 11m 54s —— View job


PR Review in progress

  • Read the hand-written diff against feat/tor-settings
  • Review persistence layer (migration, model, repository)
  • Review usecase, cubit, and UI wiring
  • Collect finder results and verify findings (3/8 finders done)
  • Post inline review comments
  • Post summary

@ethicnology
ethicnology force-pushed the feat/tor-persistence branch from 7a1713e to 6c0e23c Compare August 10, 2026 20:10
@ethicnology
ethicnology force-pushed the feat/tor-persistence branch 2 times, most recently from 5598993 to b56653d Compare August 10, 2026 21:46
@ethicnology
ethicnology force-pushed the feat/tor-persistence branch from b56653d to 36ef1d0 Compare August 11, 2026 00:52
@ethicnology
ethicnology force-pushed the feat/tor-persistence branch 3 times, most recently from fb4089d to 82af08c Compare August 17, 2026 17:08
@ethicnology
ethicnology force-pushed the feat/tor-persistence branch from 82af08c to 8bc64eb Compare August 17, 2026 18:28
@ethicnology
ethicnology force-pushed the feat/tor-persistence branch from 8bc64eb to 66aeed3 Compare August 18, 2026 15:05
@ethicnology
ethicnology force-pushed the feat/tor-persistence branch from 66aeed3 to d50ae7e Compare August 18, 2026 15:07
@ethicnology
ethicnology force-pushed the feat/tor-persistence branch from d50ae7e to 1f5dfb4 Compare August 18, 2026 15:36
Base automatically changed from feat/tor-settings to develop August 18, 2026 15:37
@ethicnology
ethicnology force-pushed the feat/tor-persistence branch from 1f5dfb4 to 2e01cfb Compare August 18, 2026 15:37
@ethicnology
ethicnology force-pushed the feat/tor-persistence branch from 2e01cfb to 6c5dd70 Compare August 18, 2026 18:40
@ethicnology
ethicnology merged commit 095083d into develop Aug 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant